package org.tio.site.json;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.serializer.PropertyFilter;

/**
 * @author tanyaowu
 * 2017年8月17日 上午10:49:33
 */
public class DonateSerializeFilter implements PropertyFilter {
	private static Logger log = LoggerFactory.getLogger(DonateSerializeFilter.class);

	public static final DonateSerializeFilter instance = new DonateSerializeFilter();

	/**
	 * @param args
	 * @author tanyaowu
	 */
	public static void main(String[] args) {

	}

	private DonateSerializeFilter() {
	}

	@Override
	public boolean apply(Object object, String name, Object value) {
		if (object == null) {
			return false;
		}

		//		User user = (User) object;
		if ("orderby".equals(name)) {
			return false;
		}
		if ("myremark".equals(name)) {
			return false;
		}

		return true;
	}
}
